package dataTypeTests;

import java.util.ArrayList;
import java.util.Random;

public class DataTypeTestMain {

	public static void main(String[] args) {
		ArrayList<Integer> arr = new ArrayList<Integer>();
		int size = 100;
		Random random = new Random();
		for (int i = 0; i < size; i++) {
			arr.add(random.nextInt(size*10));
		}
		
		DataTypeTester<Integer> tester;
		tester = new OneWayListTester<Integer>(arr);
		System.out.println(tester.measureBinSearch(1000));
		tester = new ArrayListTester<Integer>(arr);
		System.out.println(tester.measureBinSearch(1000));
	}

}
